# 序列切片
my_list = [1, 2, 3, '4', 5]
result = my_list[1:4]
print(result)

my_tuple = (1, 2, 3, 4, 5)
# 从头到尾，步长为1
result = my_tuple[:]
print(result)

my_str = '0123456789'
# 从头到尾，步长为2
result = my_str[::2]
print(result)


my_str = '0123456789'
# my_list.reverse()
print(f"{my_str}")
# 从头到尾，步长为-1，等同于反转序列
result = my_str[::-1]
print(result)
